package lec03.am;

import java.util.Arrays;

import eq.util.MyArray;

//charAt/substring/contain/startsWith/split/trim/replace/compareTo
public class StringAPIDemo {
public static void main(String[] args) {
	String s="abcdefffghdffgs";
	System.out.println(s.charAt(5));
	System.out.println(s.concat("bcd"));
	System.out.println(s.indexOf("efg"));
	System.out.println(s.startsWith("bcd"));
	//MyArray.printArr(s.split("f"));
	System.out.println(Arrays.asList(s.split("f")));
	System.out.println(Arrays.asList(s.split("f+")));
	System.out.println(Arrays.asList(s.split("f*g")));
}
}
